//
//  comicCollectionViewCell.m
//  动漫之家
//
//  Created by 王少泽 on 16/12/13.
//  Copyright © 2016年 王少泽. All rights reserved.
//

#import "comicCollectionViewCell.h"

@implementation comicCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        _comicImage = [[UIImageView alloc]initWithFrame:CGRectMake(5, 0, self.frame.size.width - 10, 120)];
        _comicImage.image = [UIImage imageNamed:@"comicBakcGround.jpg"];
        
        [self.contentView addSubview:_comicImage];
        
        _comicName = [[UILabel alloc]initWithFrame:CGRectMake(5, 80, self.frame.size.width - 10, 30)];
        _comicName.textAlignment = NSTextAlignmentRight;
        _comicName.font = [UIFont systemFontOfSize:12];
        _comicName.backgroundColor = [UIColor colorWithRed:98/255.0 green:186/255.0 blue:219/255.0 alpha:0.6];
        _comicName.textColor = [UIColor whiteColor];
        [self.contentView addSubview:_comicName];
        
        
        
    }
    return self;
}

@end
